define(["setUserInfo", "login-status", "mainPage", "shareArr", "screenAdopt"], function (setUserInfo, loginStatus, mainPage, shareArr, screenAdopt) {
    return function () {
        loginStatus()
        setUserInfo()
        let url = "/share/getPublic",
            data = {
                pageNum: 1,
                pageSize: 6,
                orderByField: "id"
            },
            method = "POST",
            nodeName = "right-inner",
            lengthToScroll = 0
        let shareList = new shareArr()
        mainPage.setBase(data, url, method)
        mainPage.setNodeListToShow(shareList, screenAdopt.adoptScreen)
        mainPage.setFirstRequest(true)
        mainPage.setWindowResize(nodeName)
        mainPage.setRollWithWindow(nodeName, nodeName, lengthToScroll, true)
    }
})